package com.guo.core.framework.template.simple;

import com.guo.core.framework.template.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class BService extends AbstractExecuteService<TestReq, TestRsp> {

    @Autowired
    private ExecuteCommonService executeCommonService;

    @Override
    protected ServiceType getServiceType() {
        return ServiceTypeEnum.TEST_SERVICE_B;
    }

    @Override
    protected BizService getService() {
        return ServiceEnum.SERVICE_B;
    }

    @Override
    public TestRsp execute(TestReq testReq) {
        log.info("执行BService");
        return executeCommonService.commonService(testReq);
    }
}